package signal;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

public class EmotionDemo {

    public static void main(String[] args) {
        Lock lock = new ReentrantLock();
        Emotion emotion = new Emotion(lock);
        Thread smileThread = new Thread(emotion,"^_^");
        Thread amazeThread = new Thread(emotion,"@_@");
        smileThread.start();
        amazeThread.start();
    }
}
